<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8" />
    <title>填写物流信息</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <meta name="format-detection" content="telephone=no" />
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/semantic.css"/>
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/main.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/common.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/light-theme.css">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Css/m2015.css" />
    <script src="__PUBLIC__/Js/jquery-3.1.1.min.js"></script>


    <script language="JavaScript" type="text/javascript">
        function changeState(isChecked)
        {
            var chk_list=document.getElementsByTagName("input");
            for(var i=0;i<chk_list.length;i++)
            {
                if(chk_list[i].type=="checkbox")
                {
                    chk_list[i].checked=isChecked;
                }
            }
        }
    </script>
<style>
    .xingm{height:40px;line-height: 40px}
    .xingmA{height:45px;line-height: 45px}
    .dizhi{
        width: 90%;
        margin:0 auto;
        padding:10px 5px;
        border-bottom:5px solid #f2f2f2; 
    }
    .dizhi-xx{
        border-bottom:2px solid #f2f2f2; 
        padding-bottom: 5px;
    }
    .dizhi p{
        margin-top: 5px;
    }
    .xuanxiang{
        padding:10px 0 0 0;
    }
    .xz{
        color: #bb3a34
    }
    .add-dizhi{
        display: block;
        width: 80%;
        background-color: #bb3a34;
        color: #fff;
        border-radius: 5px;
        padding:6px;
        text-align: center;
        position:fixed;
        left: 10%;
        bottom: 60px;
        z-index: 222;
    }
</style>
</head>


<body>
<div class="accounttitle"><h1>我的地址 </h1></div>
<div class="wrapper cart_box">
   <!--  <form name="form3" method="post" action="__APP__/Gouwu/savedizhi">
        <div class="vlist" style="padding: 0;">

            <ul>
                    <li class="cart_one">
                        
                        <div id="box" style="background-color:#f2dede;border-left:2px solid #d73d32 ;padding: 0;">
                            <p style="color: blue;text-align: center">收货信息</p>
                                <p class="xingm">收货姓名：<input type="text" name="us_name" value="{$order.name}"></p>
                                <p class="xingmA ">收货地址：<textarea name="us_address"  cols="21" rows="2">{$order.address}</textarea></p>
                                <p class="xingm">收货电话：<input type="text" name="us_tel" value="{$order.tel}" maxlength="11"></p>
                                <p class="xingm" style="text-align: center">
                                    <input type="hidden" name="oid" value="{$order.id}">
                                    <input class="bot6" type="button" value="取 消" onclick="history.back()">
                                    <input class="bot6" type="submit" value="完 成">
                                </p>
                        </div>
                    </li>

            </ul>
        </div>
            </form>
 -->
  <!-- 地址 -->
  <volist name="order" id="vo">
        <div class="dizhi"> 
        
            <div class="dizhi-xx">
                <p style="color: #363636">收货人:{$vo.name}<span style="display:block;float: right;text-align: right;">电话：{$vo.tel}</span></p>
                <p style="color: #000">收货地址:{$vo.address}</p>
            </div>
            <div class="xuanxiang">
                <div style="float: left;" class="xz">
                  <label>  <input type="radio" name="gp" onclick="moren({$vo.id})" style="border-radius: 2px" <if condition="$vo['moren'] eq 1 "> checked="checked" </if> >设为默认</label>
                </div>
                <div class="gongneng" style="float: right;text-align: right;">
                    <a href="__APP__/Gouwu/logisticsInfo1/oid/{$vo.id}">
                         <span style="display: inline-block;float: left;margin-top: -5px">
                             <img src="__PUBLIC__/Images/index/bianji.png" alt="">
                         </span>
                         <span style="display: inline-block;float: left;margin-right: 10px">
                             编辑 
                         </span>
                    </a>
                    <a href="__APP__/Gouwu/dizhiselect/oid/{$vo.id}">
                         <span style="display: inline-block;float: left;margin-top: -5px">
                              <img src="__PUBLIC__/Images/index/del.png" alt="">
                         </span>
                         <span style="display: inline-block;float: left">
                             删除
                         </span>
                    </a>
                </div>
                <div style="clear: both"></div>
            </div>
            
        </div>
        </volist>
        <a href="__URL__/dizhiadd" class="add-dizhi">
            添加新地址
        </a>
</div>

<include file="Public:footer" />
<script type="text/javascript">
    function moren(o){
        var id = o;
        $.post('__APP__/Gouwu/moreng',{id:id},function(data){
            alert(data);
        })
    }
</script>